import request from '@/utils/request';
//获取专业列表
export function majorList(option) {
  return request({
    url: '/marjor',
    method: 'get',
    params:option
  });
}


//新增专业列表
export function addMajor(option) {
  return request({
    url: '/marjor',
    method: 'post',
    data:option
  });
}


//删除一条专业
export function delMajor(id) {
  return request({
    url: `/marjor/${id}`,
    method: 'delete'
  });
}

//修改一条专业
export function upMarjor(option) {
  return request({
    url: '/marjor',
    method: 'put',
    data:option
  });
}

//获取一条专业详情
export function marjorDetail(id) {
  return request({
    url: `/marjor/detail/${id}`,
    method: 'get'
  });
}